/* ============================================================
   YETU AFRICAN STEM — home.css
   All styles for the home page sections
   Brand :root variables are defined in layouts/app.blade.php
   ============================================================ */

/* ── SHARED WATERMARK UTILITY ── */
.hero-section,
.stats-band,
.programs-section,
.why-section,
.testimonials-section,
.countries-section,
.cta-band {
    position: relative;
    overflow: hidden;
}

.hero-section::after,
.stats-band::after,
.programs-section::after,
.why-section::after,
.testimonials-section::after,
.countries-section::after,
.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/HT7Tc01.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70%;
    pointer-events: none;
    z-index: 0;
}

/* Per-section opacity tuning — dark sections show more, light sections less */
.hero-section::after         { opacity: 0.06; }
.stats-band::after           { opacity: 0.07; }
.programs-section::after     { opacity: 0.04; }
.why-section::after          { opacity: 0.04; }
.testimonials-section::after { opacity: 0.04; }
.countries-section::after    { opacity: 0.07; }
.cta-band::after             { opacity: 0.06; }

/* Every direct container inside a section must sit above the watermark */
.hero-section > .container,
.stats-band > .container,
.programs-section > .container,
.why-section > .container,
.testimonials-section > .container,
.countries-section > .container,
.cta-band > .container {
    position: relative;
    z-index: 2;
}

/* ── HERO ── */
.hero-section {
    background-color: var(--teal-deep);
    min-height: 92vh;
    display: flex;
    align-items: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,  rgba(224,123,57,0.04) 0px, rgba(224,123,57,0.04) 2px, transparent 2px, transparent 28px),
        repeating-linear-gradient(-45deg, rgba(67,178,108,0.04) 0px, rgba(67,178,108,0.04) 2px, transparent 2px, transparent 28px);
    pointer-events: none;
    z-index: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242,201,76,0.1);
    border: 1px solid rgba(242,201,76,0.3);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}
.hero-badge span {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.12;
    margin-bottom: 24px;
}
.hero-title .highlight {
    color: var(--orange);
    position: relative;
}
.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--yellow));
    border-radius: 2px;
}
.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.72);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 36px;
}
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}
.btn-hero-primary {
    background: var(--orange);
    color: #fff;
    border: 2px solid var(--yellow);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover {
    background: var(--brown);
    color: #fff;
    transform: translateY(-2px);
}
.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-secondary:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}
.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
}
.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.12);
    align-self: stretch;
}
.hero-cards { position: relative; z-index: 2; }
.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}
.hero-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(-6px);
}
.hero-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.hci-orange { background: rgba(224,123,57,0.2);  border: 1px solid rgba(224,123,57,0.3); }
.hci-blue   { background: rgba(79,163,208,0.2);  border: 1px solid rgba(79,163,208,0.3); }
.hci-green  { background: rgba(67,178,108,0.2);  border: 1px solid rgba(67,178,108,0.3); }
.hci-yellow { background: rgba(242,201,76,0.1);  border: 1px solid rgba(242,201,76,0.3); }
.hero-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}
.hero-card-sub {
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
}
.hero-card-arrow {
    margin-left: auto;
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    transition: color 0.2s;
}
.hero-card:hover .hero-card-arrow { color: var(--orange); }

/* ── SHARED SECTION STYLES ── */
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(224,123,57,0.1);
    border: 1px solid rgba(224,123,57,0.25);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: #1a2a2a;
    line-height: 1.2;
    margin-bottom: 14px;
}
.section-title .accent { color: var(--teal); }
.section-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.75;
    max-width: 560px;
}

/* ── STATS BAND ── */
.stats-band {
    background: var(--teal);
    padding: 52px 0;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px,
        transparent 1px, transparent 60px
    );
    z-index: 0;
}
.stat-card {
    text-align: center;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
}
.stat-card + .stat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-number sup {
    font-size: 22px;
    vertical-align: super;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── PROGRAMS ── */
.programs-section {
    padding: 96px 0;
    background: #f8faf9;
}
.program-card {
    background: #ffffff;
    border: 1px solid #e8ede9;
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.program-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-image: none;
}
.pc-orange::after { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.pc-blue::after   { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.pc-green::after  { background: linear-gradient(90deg, var(--green), var(--teal)); }
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(44,122,123,0.12);
    border-color: transparent;
}
.program-card:hover::after { opacity: 1; }
.program-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.pi-orange { background: rgba(224,123,57,0.1); border: 1px solid rgba(224,123,57,0.2); }
.pi-blue   { background: rgba(79,163,208,0.1); border: 1px solid rgba(79,163,208,0.2); }
.pi-green  { background: rgba(67,178,108,0.1); border: 1px solid rgba(67,178,108,0.2); }
.program-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a2a2a;
    margin-bottom: 10px;
}
.program-card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 20px;
}
.program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.prog-tag {
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.pt-orange { background: rgba(224,123,57,0.1); color: var(--orange); }
.pt-blue   { background: rgba(79,163,208,0.1); color: var(--blue); }
.pt-green  { background: rgba(67,178,108,0.1); color: var(--green); }
.program-link {
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.pl-orange { color: var(--orange); }
.pl-blue   { color: var(--blue); }
.pl-green  { color: var(--green); }
.program-link:hover { gap: 10px; }
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: #fff;
    padding: 13px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.btn-view-all:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ── WHY PARTNER ── */
.why-section {
    padding: 96px 0;
    background: #ffffff;
}
.why-item {
    display: flex;
    gap: 18px;
    margin-bottom: 36px;
}
.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.wi-1 { background: rgba(224,123,57,0.12); }
.wi-2 { background: rgba(79,163,208,0.12); }
.wi-3 { background: rgba(67,178,108,0.12); }
.wi-4 { background: rgba(242,201,76,0.12); }
.wi-5 { background: rgba(44,122,123,0.12); }
.wi-6 { background: rgba(139,94,60,0.12); }
.why-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a2a;
    margin-bottom: 6px;
}
.why-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
}
.why-image-block {
    background: var(--teal-deep);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 480px;
}
.why-image-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(224,123,57,0.05) 0px, rgba(224,123,57,0.05) 2px,
        transparent 2px, transparent 24px
    );
    z-index: 0;
}
.why-image-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/HT7Tc01.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 85%;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.why-big-number {
    font-family: 'Playfair Display', serif;
    font-size: 90px;
    font-weight: 700;
    color: rgba(242,201,76,0.15);
    line-height: 1;
    position: absolute;
    top: 20px; right: 30px;
    z-index: 2;
}
.why-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}
.why-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.why-feature-list li:last-child { border-bottom: none; }
.wf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wf-orange { background: var(--orange); }
.wf-green  { background: var(--green); }
.wf-blue   { background: var(--blue); }
.wf-yellow { background: var(--yellow); }
.why-cta-block {
    position: relative;
    z-index: 2;
    margin-top: 32px;
}
.why-cta-block a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--yellow);
    transition: background 0.2s ease;
}
.why-cta-block a:hover {
    background: var(--brown);
    color: #fff;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
    padding: 96px 0;
    background: #f8faf9;
}
.testimonial-card {
    background: #ffffff;
    border: 1px solid #e8ede9;
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(44,122,123,0.1);
}
.testimonial-quote {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 16px;
}
.testimonial-text {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.ta-teal   { background: var(--teal); }
.ta-orange { background: var(--orange); }
.ta-green  { background: var(--green); }
.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a2a2a;
}
.testimonial-role {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── COUNTRIES ── */
.countries-section {
    padding: 80px 0;
    background: var(--teal);
}
.countries-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px,
        transparent 2px, transparent 20px
    );
    z-index: 0;
}
.country-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}
.country-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-4px);
    border-color: var(--yellow);
}
.country-flag  { font-size: 32px; margin-bottom: 10px; }
.country-name  { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.country-schools { font-size: 11.5px; color: rgba(255,255,255,0.55); }

/* ── CTA BAND ── */
.cta-band {
    background: var(--teal-deep);
    padding: 80px 0;
    text-align: center;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(44,122,123,0.4) 0%, transparent 70%);
    z-index: 0;
}
.cta-band-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.cta-band-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.75;
    position: relative;
    z-index: 2;
}
.cta-band-btns {
    position: relative;
    z-index: 2;
}
.btn-cta-main {
    background: var(--orange);
    color: #fff;
    border: 2px solid var(--yellow);
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin: 0 8px 12px;
}
.btn-cta-main:hover {
    background: var(--brown);
    color: #fff;
    transform: translateY(-2px);
}
.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin: 0 8px 12px;
}
.btn-cta-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeInUp 0.6s ease 0.00s both; }
.anim-2 { animation: fadeInUp 0.6s ease 0.15s both; }
.anim-3 { animation: fadeInUp 0.6s ease 0.30s both; }
.anim-4 { animation: fadeInUp 0.6s ease 0.45s both; }
.anim-5 { animation: fadeInUp 0.6s ease 0.60s both; }

/* ── CURVED IMAGE ARRANGEMENT ── */
.hero-curve-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
    z-index: 2;
}

/* Decorative arc line sitting behind the images */
.hero-curve-wrapper::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 90px;
    width: 340px;
    height: 420px;
    border-right: 2px dashed rgba(255,255,255,0.08);
    border-bottom: 2px dashed rgba(255,255,255,0.06);
    border-radius: 0 55% 55% 0;
    pointer-events: none;
    z-index: 0;
}

/* Base styles shared by all 4 image items */
.curve-img-item {
    position: absolute;
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

.curve-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Label revealed on hover */
.curve-label {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 22px 12px 10px;
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-align: center;
    pointer-events: none;
}
.curve-img-item:hover .curve-label { opacity: 1; }
.curve-img-item:hover {
    box-shadow: 0 18px 52px rgba(0,0,0,0.32);
    z-index: 10 !important;
}

/*
 * Arc cascade — top-left (largest) down to bottom-right (smallest)
 * Subtle alternating rotation gives an organic, hand-placed feel
 */

/* Item 1 — top, largest */
.ci-1 {
    width: 210px;
    height: 210px;
    top: 0px;
    left: 10px;
    transform: rotate(-4deg);
    z-index: 4;
    border: 3px solid rgba(255,255,255,0.14);
}
.ci-1:hover { transform: rotate(0deg) scale(1.05); }

/* Item 2 — upper-mid */
.ci-2 {
    width: 175px;
    height: 175px;
    top: 100px;
    left: 150px;
    transform: rotate(2.5deg);
    z-index: 3;
    border: 3px solid rgba(255,255,255,0.11);
}
.ci-2:hover { transform: rotate(0deg) scale(1.05); }

/* Item 3 — lower-mid */
.ci-3 {
    width: 150px;
    height: 150px;
    top: 245px;
    left: 260px;
    transform: rotate(-2deg);
    z-index: 2;
    border: 3px solid rgba(255,255,255,0.09);
}
.ci-3:hover { transform: rotate(0deg) scale(1.05); }

/* Item 4 — bottom, smallest */
.ci-4 {
    width: 128px;
    height: 128px;
    top: 372px;
    left: 345px;
    transform: rotate(3deg);
    z-index: 1;
    border: 3px solid rgba(255,255,255,0.07);
}
.ci-4:hover { transform: rotate(0deg) scale(1.05); }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .hero-curve-wrapper {
        height: 400px;
        margin-top: 40px;
    }
    .ci-1 { width: 165px; height: 165px; top: 0px;   left: 8px;   }
    .ci-2 { width: 140px; height: 140px; top: 80px;  left: 118px; }
    .ci-3 { width: 118px; height: 118px; top: 192px; left: 204px; }
    .ci-4 { width: 100px; height: 100px; top: 292px; left: 272px; }
}

@media (max-width: 576px) {
    .hero-curve-wrapper { display: none; }
}